package com.yunji.common.event.entity;

import lombok.Data;

/**
 * @author : peter-zhu
 * @date : 2024/11/1 14:41
 * @description : TODO
 **/
@Data
public class EventData<T> {
    private String eventName;
    private String eventType;
    private String topicName;
    private String queueName;
    private T eventData;

    public EventData(T eventData) {
        this.eventData = eventData;
    }

    public EventData(String queueName, T eventData) {
        this.queueName = queueName;
        this.eventData = eventData;
    }

    public EventData(String eventName, String eventType, String topicName, T eventData) {
        this.eventName = eventName;
        this.eventType = eventType;
        this.topicName = topicName;
        this.eventData = eventData;
    }
}
